<template>
  <img
    id="logo"
    src="https://typora-1312299359.cos.ap-beijing-1.myqcloud.com/icon/bitLogo.png"
  />
</template>

<style scoped>
#logo {
  width: 50px;
  height: 50px;
  /* 兼容性设置 */
  -webkit-animation: roll 5s linear infinite;
  -moz-animation: roll 5s linear infinite;
  animation: roll 5s linear infinite;
  transition: all 0.4s ease;
}
#logo:hover {
  width: 70px;
  height: 70px;
}
@keyframes roll {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}
</style>
